Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig.json: don't typecheck esbuild plugins #20730

Merged

Conversation

allisonkarlitskaya
Copy link
Member

Our TypeScript config is setup to check our code that will be bundled and run in the browser. It shouldn't be running on esbuild plugins that are run inside of node, and we never intended for it to. Unfortunately, we mix our esbuild plugins into pkg/lib/ alongside browser-based code, so it gets lumped in.

Add some excludes. Fortunately, we don't have to copy this to other projects (like Cockpit Files) because they only check src/* in the first place (and only include files in other directories if they are explicitly imported).

Our TypeScript config is setup to check our code that will be bundled
and run in the browser.  It shouldn't be running on esbuild plugins
that are run inside of node, and we never intended for it to.
Unfortunately, we mix our esbuild plugins into pkg/lib/ alongside
browser-based code, so it gets lumped in.

Add some excludes.  Fortunately, we don't have to copy this to other
projects (like Cockpit Files) because they only check `src/*` in the
first place (and only include files in other directories if they are
explicitly imported).
@allisonkarlitskaya allisonkarlitskaya added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Jul 9, 2024
@martinpitt martinpitt merged commit ff8db05 into cockpit-project:main Jul 9, 2024
31 of 32 checks passed
@martinpitt martinpitt deleted the tsc-exclude-buildsystem branch July 9, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants